<%@ page language="java" pageEncoding="UTF-8"%><%@ taglib prefix="s" uri="/struts-tags"%>
<script language="javascript" src="<%=request.getContextPath()%>/js/menu.js" type="text/javascript"></script>
<div id="menu">
	<div id="dynamic_menu" class="dynamic_menu"></div>
	<s:set name="menu_index" value="0" />
	<s:iterator value="topCategories">
		<s:set name="superCategory" value="top" />
		<div class="menu">
			<p>
				<s:property value="#superCategory.name" />
			</p>
			<ul>
				<s:iterator value="children" status="status">
					<s:set name="category" value="top" />
					<li id="level_<s:property value="#menu_index"/>" onclick="document.location='search_type_1.html'">
						<a href="#"><s:property value="#category.name" /> </a>
						<s:if test="#category.children && #category.children.size()>0">
							<div id="level_<s:property value="#menu_index"/>_dynamic" class="hidden">
								<ul>
									<s:iterator value="#category.children">
										<s:set name="subCategory" value="top" />
										<li onclick="document.location='search_list.html'">
											<s:property value="#subCategory.name" />
										</li>
									</s:iterator>
								</ul>
							</div>
						</s:if>
					</li>
					<s:set name="menu_index" value="#menu_index+1" />
				</s:iterator>
			</ul>
		</div>
	</s:iterator>
</div>